• Àüü
  • ÀüÀÚ/Àü±â
  • Åë½Å
  • ÄÄÇ»ÅÍ
´Ý±â

»çÀÌÆ®¸Ê

Loading..

Please wait....

±¹³» ³í¹®Áö

Ȩ Ȩ > ¿¬±¸¹®Çå > ±¹³» ³í¹®Áö > Çѱ¹Á¤º¸°úÇÐȸ ³í¹®Áö > Á¤º¸°úÇÐȸ³í¹®Áö (Journal of KIISE)

Á¤º¸°úÇÐȸ³í¹®Áö (Journal of KIISE)

Current Result Document :

ÇѱÛÁ¦¸ñ(Korean Title) C++ ¿¬»êÀÚ ¿À¹ö·ÎµùÀ» È°¿ëÇÑ »õ·Î¿î ¿¬»êÀÚ ±âÈ£ ÇÁ·Î±×·¡¹Ö ¹æ¹ý
¿µ¹®Á¦¸ñ(English Title) Programming New Operator Symbols Using C++ Operator Overloading
ÀúÀÚ(Author) ¿ì±Õ   Gyun Woo  
¿ø¹®¼ö·Ïó(Citation) VOL 49 NO. 03 PP. 0207 ~ 0213 (2022. 03)
Çѱ۳»¿ë
(Korean Abstract)
Haskell°ú °°Àº ÀϺΠÃֽŠÇÁ·Î±×·¡¹Ö ¾ð¾î¿¡¼­´Â »ç¿ëÀÚ°¡ »õ·Î¿î ¿¬»êÀÚ¸¦ Á¤ÀÇÇÒ ¼ö ÀÖÀ¸³ª, ´ëºÎºÐÀÇ ÇÁ·Î±×·¡¹Ö ¾ð¾î¿¡¼­´Â ¿¬»êÀÚ´Â »õ·Î ¸¸µé ¼ö ¾ø´Ù. ÀÌ·¯ÇÑ ÇÑ°è´Â ¿À¹ö·ÎµùÀ» Çã¿ëÇÏ´Â ¾ð¾î, ¿¹ÄÁ´ë C++ÀÇ °æ¿ì¿¡µµ ¸¶Âù°¡ÁöÀÌ´Ù. C++¿¡¼­µµ ¾ð¾î¿¡¼­ Áö¿øÇÏ´Â ¿¬»êÀÚÀÇ Àǹ̸¦ ¹Ù²Ü ¼ö´Â ÀÖÁö¸¸ »õ·Î¿î ¿¬»êÀÚ¸¦ ¸¸µé ¼ö´Â ¾ø´Ù. ÀÌ·± ÇÑ°è¿¡µµ ºÒ±¸ÇÏ°í ÀÌ ³í¹®Àº C++¿¡¼­ »õ·Î¿î ¿¬»êÀÚ ±âÈ£¸¦ ÇÁ·Î±×·¡¹ÖÇÏ´Â ¹æ¹ýÀ» ¼³¸íÇÑ´Ù. »ç½Ç ÀÌ ³í¹®ÀÇ ¾ÆÀ̵ð¾î´Â C++ÀÇ ¿¬»êÀÚ ¿À¹ö·ÎµùÀ» ÀÌ¿ëÇÏ¿© ¸¶Ä¡ »õ·Î¿î ¿¬»êÀÚ°¡ ¸¸µé¾îÁø °Íó·³ º¸ÀÌ°Ô ÇÏ´Â ÇÁ·Î±×·¡¹Ö ±â¹ýÀÌ´Ù. ÀÌ °úÁ¤¿¡¼­ ¾îÈÖ ºÐ¼®±âÀÇ ±â´ÉÀ» È°¿ëÇϴµ¥ À̸¥¹Ù ¾îÈÖ ºÐ¼®±âÀÇ ¡°Å©°Ô º£¾î ¹°±â Á¤Ã¥¡±À» È°¿ëÇÑ´Ù. ÀÌ ³í¹®¿¡¼­ Á¦½ÃÇÑ ¹æ¹ýÀ» ÀÌ¿ëÇϸé Ŭ¶óÀ̾ðÆ® ÄÚµåÀÇ ÀÛ¼º·Â¿¡ ±â¿©ÇÒ »Ó ¾Æ´Ï¶ó ÇÁ·Î±×·¡¸ÓÀÇ ÄÚµå ÀÛ¼º ÀÚÀ¯µµ¸¦ ³ô¿© ÁÙ °ÍÀ¸·Î ±â´ëµÈ´Ù.
¿µ¹®³»¿ë
(English Abstract)
Even though modern programming languages such as Haskell allow users to define new operators, it is not allowed in most programming languages. This limitation also exists in such programming languages that allow operator overloading such as C . C allows to change the meaning of native operators but does not allow to define a new operator. In spite of this limitation, this paper explains how to program a new operator symbol in C . The idea of this paper is, in fact, to mimic a new operator symbol using C operator overloading. The trick lies on the principle namely ¡°maximal munch¡± adopted by the lexical analyzer. The method proposed in this paper contributes to the writability of the client code and is expected to promote the degree of freedom for a programmer to write the code.
Å°¿öµå(Keyword) ¿¬»êÀÚ ¿À¹ö·Îµù   ¾îÈÖ ºÐ¼®   Å©°Ô º£¾î ¹°±â Á¤Ã¥   ÇÁ·Î±×·¥ ÀÛ¼º·Â   operator overloading   lexical analysis   the maximal munch principle   program writability  
ÆÄÀÏ÷ºÎ PDF ´Ù¿î·Îµå